import { Injectable } from '@nestjs/common';
import { FindTeacherResponseDto } from './dto/teacher.dto';
import {teachers,students} from '../db'
@Injectable()
export class TeacherService {
    private teachers = teachers;
    private students=students;
    getTeachers():FindTeacherResponseDto[]{
        return this.teachers;
    }
    getTeacherById(teacherId:string):FindTeacherResponseDto{
        return this.teachers.find(teacher=>{
            return teacher.id === teacherId
        });
    }
}
